package org.adorsys.aderp.jpa.impl;

import java.lang.reflect.Field;

import javax.persistence.OneToOne;

import org.springframework.util.ReflectionUtils.FieldFilter;

/**
 * Checks if the field carries the annotation business key.
 * 
 * @author francis
 *
 */
public class OneToOneAnnotationFilter implements FieldFilter {

	@Override
	public boolean matches(Field field) {
		return field.getAnnotation(OneToOne.class)!=null;
	}

}
